package com.woniuxy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;

@Getter
@Setter
@ToString
public class Cart {
    private Integer id;
    //用户Id外键:关联用户表ID
    @TableField("userId")
    private Integer userId;
    //菜品Id外键:关联菜品表Id
    @TableField("dishId")
    private Integer dishId;
    //销量
    private Integer nums;
    //状态属性：是否被选中
    private String selected;
    private BigDecimal money;
    @TableField(exist = false)
    private Dish dish;
    @TableField(exist = false)
    private int[] ids;
}
